#! /bin/sh

echo "start ssh"
mkdir /var/log/ -p
mkdir /var/empty -p
mkdir /etc/ssh/

ln -s /usr/bin/busybox /bin/syslogd
ln -s /usr/bin/busybox /bin/klogd

unlink /bin/passwd
ln -s /usr/bin/busybox /bin/passwd

syslogd
klogd


[ -f /etc/ssh/ssh_host_rsa_key ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""

/bin/sshd -f /etc/sshd_config -h /etc/ssh/ssh_host_rsa_key
